package com.wry.wry_test.controller;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.wry.wry_test.dao.entity.Student;
import com.wry.wry_test.dao.mapper.StudentMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: wangrongyi
 * @Date: 2025/1/7 10:52
 * @Description:
 */
@RestController
@RequestMapping("/student")
@Slf4j
public class StudentController {
    @Resource
    private StudentMapper studentMapper;

    @RequestMapping("/getStudent")
    public void getStudent() {

        LambdaQueryWrapper<Student> queryWrapper = new LambdaQueryWrapper<>();
        List<Student> students = studentMapper.selectList(queryWrapper);
        log.info("students:{}", students);

    }

}
